package com.dlc.beijingrfid.model;

import com.dlc.beijingrfid.model.intfc.ProductStatusList;

/**
 * todo 产品规格类，临时定义为这样，以后要改
 */
public class ProductStatusListImpl implements ProductStatusList {

    private String rfid;
    private String name;
    private String category;
    private int length;
    private int width;
    private String where;
    private boolean unbound;

    public ProductStatusListImpl() {

    }

    public ProductStatusListImpl(String rfid, String name, String category, int length, int width,
        String where) {
        this.rfid = rfid;
        this.name = name;
        this.category = category;
        this.length = length;
        this.width = width;
        this.where = where;
    }

    public ProductStatusListImpl(String rfid, String name, String category, int length, int width,
        String where, boolean unbound) {
        this.rfid = rfid;
        this.name = name;
        this.category = category;
        this.length = length;
        this.width = width;
        this.where = where;
        this.unbound = unbound;
    }

    @Override
    public String getRFID() {
        return rfid;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public String getSpec() {
        return category + " " + length + "*" + width;
    }

    @Override
    public String getWhere() {
        return where;
    }

    @Override
    public boolean isUnbound() {
        return unbound;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public void setWhere(String where) {
        this.where = where;
    }

    public String getRfid() {
        return rfid;
    }

    public void setRfid(String rfid) {
        this.rfid = rfid;
    }

    public void setUnbound(boolean unbound) {
        this.unbound = unbound;
    }
}
